/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

#app {
  height: 100%;
}

/* 常用辅助类 */
.clearfix:after {
  content: "";
  display: table;
  clear: both;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.float-left {
  float: left;
}

.float-right {
  float: right;
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.flex-1 {
  flex: 1;
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 8px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 响应式辅助类 */
.hidden-xs-only {
  display: none;
}

@media (min-width: 576px) {
  .hidden-xs-only {
    display: initial;
  }
  
  .hidden-sm-and-up {
    display: none;
  }
}

@media (min-width: 768px) {
  .hidden-sm-only {
    display: none;
  }
  
  .hidden-md-and-up {
    display: none;
  }
}

@media (min-width: 992px) {
  .hidden-md-only {
    display: none;
  }
  
  .hidden-lg-and-up {
    display: none;
  }
}

@media (min-width: 1200px) {
  .hidden-lg-only {
    display: none;
  }
  
  .hidden-xl-only {
    display: none;
  }
}

/* 表格行的悬停效果 */
.el-table--enable-row-hover .el-table__body tr:hover > td.el-table__cell {
  background-color: rgba(64, 158, 255, 0.08);
}

/* 移动设备优化 */
@media (max-width: 768px) {
  html, body {
    font-size: 14px;
  }
  
  .el-message-box {
    width: 80% !important;
  }
}

@media (max-width: 576px) {
  html, body {
    font-size: 12px;
  }
  
  .el-button + .el-button {
    margin-left: 5px;
  }
} 